package com.jingdianjichi.project.common.enums;

import lombok.Getter;

/**
 * ClassName:IsDeletedFlagEnum
 * Package:com.jingdianjichi.subject.common.enums
 * Description:
 *
 * @Author fst
 * @Create 2024/9/28 20:12
 * @Version 1.0
 */

@Getter
public enum SubjectLikedStatusEnum
{
    LIKED(1,"点赞"),
    UN_LIKED(0,"未点赞");

    private  Integer code;
    private  String  desc;

    private SubjectLikedStatusEnum(Integer code, String desc)
    {
        this.code=code;
        this.desc=desc;
    }

    public static SubjectLikedStatusEnum getByCode(Integer code)
    {
        for (SubjectLikedStatusEnum isDeletedFlagEnum: SubjectLikedStatusEnum.values()) {
            if(isDeletedFlagEnum.code==code)
            {
                return isDeletedFlagEnum;
            }
        }
        return null;
    }
}
